package SmartHome.commands;

import SmartHome.devices.Curtain;

public class CurtainCommand implements Command {
    private final Curtain curtain;

    public CurtainCommand(Curtain curtain) {
        this.curtain = curtain;
    }

    @Override
    public void execute() {
        curtain.start();
    }

    @Override
    public void undo() {
        curtain.turnOff();
    }
}
